import axios from '@/libs/request'

export const insert = (data) => {
  return axios.request({
    url: '/api/ac/cme2/traceContactService/insert',
    data: data,
    type: 'post'
  })
}

export const findPageList = (pageInfo) => {
  return axios.request({
    url: '/api/as/cme2/tracecontact/findPageList',
    data: pageInfo,
    type: 'get'
  })
}

export const updateDeptCommitStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/traceContactService/updateDeptCommitStatus',
    data: data,
    type: 'post'
  })
}
export const deleteRequest = (data) => {
  return axios.request({
    url: '/api/ac/cme2/traceContactService/delete',
    data: data,
    type: 'post'
  })
}
export const updateDeptRejectStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/traceContactService/updateDeptRejectStatus',
    data: data,
    type: 'post'
  })
}
export const findList = (data) => {
  return axios.request({
    url: '/api/as/cme2/tracecontact/findList',
    data: data,
    type: 'get'
  })
}
export const update = (data) => {
  return axios.request({
    url: '/api/as/cme2/tracecontact/update',
    data: data,
    type: 'post'
  })
}
export const updateDeptAuditStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/traceContactService/updateDeptAuditStatus',
    data: data,
    type: 'post'
  })
}
export const updateLeaderAuditStatus = (data) => {
  return axios.request({
    url: '/api/ac/cme2/traceContactService/updateLeaderAuditStatus',
    data: data,
    type: 'post'
  })
}
